﻿//-----------------------------------------------------------------------
// <copyright file="IAccountService.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System;
using GateShift.Services.SDK.Services.Interfaces;

#endregion

namespace GateShift.Services.Common
{
    /// <summary>
    /// Service Definition for an Account Service managing all activity for player accounts
    /// </summary>
    public interface IAccountService : IService
    {
        /// <summary>
        /// Retrieves the Account ID for a player given their Session ID
        /// </summary>
        /// <param name="sessionID">SessionID to lookup</param>
        /// <returns>Identity of the account or null if no account was found</returns>
        Guid? GetAccountID(Guid sessionID);

        /// <summary>
        /// Logs out a user with a reason defined by the system
        /// </summary>
        /// <param name="sessionID">SessionID to logout</param>
        /// <param name="description">Description as to why the system logged the user out</param>
        void SystemLogoutSession(Guid sessionID, string description);
    }
}
